
    <div class="Main_Header">
        <div>Kết quả tìm kiếm cho cụm từ: <span style="font-family: tahoma;color: yellow;text-transform: none"><?=$this->pname?></span> </div>
    </div>
    <?if (count($this->listpro)){?>
    <?foreach($this->listpro as $key=>$value){?>
        <div class="box_product">
            <a href="<?=PATH?>/product/detail/<?=$value->pid?>"> <div class="prod_cel"><img src="<?=PATH?>/media/images/products/<?=$value->picture?>" alt=""></div></a>
            <div class="bt_view" onclick="location.href='<?=PATH?>/product/detail/<?=$value->pid?>'"></div>
            <div class="bt_buy"></div>
            <div align="center"><?=$value->pname?></div>
            <div align="center" >Giá: <span style="color: yellow;"><?=number_format($value->price,0,',','.')?> VNĐ</span></div>
        </div>

        <?}}
else {?>
    <div style="color: red;font-size: 18px" align="center">Không có sản phẩm nào</div>
    <?}?>
    <div class="paging_bar">
        <table border="0"  align="left" cellpadding="0" cellspacing="0" >
            <tr>
                <td bgcolor="#EEEEEE"  width=100px align=center style="border:#cccccc 1px solid" ><b>Trang:</b></td>
                <?
                //echo $this->totalpage;
                for($i=1;$i<=$this->totalpage;$i++)
                {
                    echo '<td bgcolor="#EEEEEE" width=20px align=center style="border:#cccccc 1px solid" height="10px">';
                    echo "<a href=".PATH."/product/search/".$this->pname."/".$this->menupro."/".$this->manufactory."/".$i." style=".($i==$this->currenpage?'color:#FF0000;font-weight:bold':'color:#000000;font-weight:normal')."  >&nbsp;".$i."&nbsp;</a>";

                    echo '</td>';

                }

                ?>

            </tr>
        </table>
    </div>
